package com.kingdee.eas.ec.garden.material.inv.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.ec.material.inv.app.MaterialInvBillEntryControllerBean;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.basedata.BaseBillEntryCollection;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.BillEntryBaseCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.ec.garden.material.inv.GaPlantletInAcpEntryCollection;
import com.kingdee.eas.ec.garden.material.inv.GaPlantletInAcpEntryInfo;
import com.kingdee.eas.ec.material.inv.MaterialInvBillEntryCollection;
import com.kingdee.eas.ec.material.basedata.OutInWareBaseBillEntryCollection;



public abstract class AbstractGaPlantletInAcpEntryControllerBean extends MaterialInvBillEntryControllerBean implements GaPlantletInAcpEntryController
{
    protected AbstractGaPlantletInAcpEntryControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("B49B942C");
    }

    public GaPlantletInAcpEntryInfo getGaPlantletInAcpEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("0558b61e-3f91-463a-8e10-5f39e8a264dd"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            GaPlantletInAcpEntryInfo retValue = (GaPlantletInAcpEntryInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaPlantletInAcpEntryInfo getGaPlantletInAcpEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("aec675b1-276b-4cde-8d7f-49b5caaa5592"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            GaPlantletInAcpEntryInfo retValue = (GaPlantletInAcpEntryInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaPlantletInAcpEntryInfo getGaPlantletInAcpEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ae4394e9-1bd9-4fe6-991f-9c335dcd6ef7"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaPlantletInAcpEntryInfo retValue = (GaPlantletInAcpEntryInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaPlantletInAcpEntryCollection getGaPlantletInAcpEntryCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1fc6d861-462a-407e-af15-19b449ca8c62"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            GaPlantletInAcpEntryCollection retValue = (GaPlantletInAcpEntryCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaPlantletInAcpEntryCollection getGaPlantletInAcpEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("96310085-a06b-49e3-9c05-30925c25b61a"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            GaPlantletInAcpEntryCollection retValue = (GaPlantletInAcpEntryCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaPlantletInAcpEntryCollection getGaPlantletInAcpEntryCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8c539def-b994-4104-a566-47c5aa5fa853"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaPlantletInAcpEntryCollection retValue = (GaPlantletInAcpEntryCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public MaterialInvBillEntryCollection getMaterialInvBillEntryCollection (Context ctx) throws BOSException
    {
    	return (MaterialInvBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx).cast(MaterialInvBillEntryCollection.class));
    }
    public MaterialInvBillEntryCollection getMaterialInvBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (MaterialInvBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx, view).cast(MaterialInvBillEntryCollection.class));
    }
    public MaterialInvBillEntryCollection getMaterialInvBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (MaterialInvBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx, oql).cast(MaterialInvBillEntryCollection.class));
    }
    public OutInWareBaseBillEntryCollection getOutInWareBaseBillEntryCollection (Context ctx) throws BOSException
    {
    	return (OutInWareBaseBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx).cast(OutInWareBaseBillEntryCollection.class));
    }
    public OutInWareBaseBillEntryCollection getOutInWareBaseBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (OutInWareBaseBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx, view).cast(OutInWareBaseBillEntryCollection.class));
    }
    public OutInWareBaseBillEntryCollection getOutInWareBaseBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (OutInWareBaseBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx, oql).cast(OutInWareBaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx) throws BOSException
    {
    	return (BaseBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx, view).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillEntryCollection)(getGaPlantletInAcpEntryCollection(ctx, oql).cast(BaseBillEntryCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (BillEntryBaseCollection)(getGaPlantletInAcpEntryCollection(ctx).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillEntryBaseCollection)(getGaPlantletInAcpEntryCollection(ctx, view).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillEntryBaseCollection)(getGaPlantletInAcpEntryCollection(ctx, oql).cast(BillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaPlantletInAcpEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaPlantletInAcpEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaPlantletInAcpEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPlantletInAcpEntryCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPlantletInAcpEntryCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPlantletInAcpEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}